package com.app.mvc;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class  HelloController {
	@RequestMapping("/")
	public String printWelcome(ModelMap model) {
		model.addAttribute("message", "Hello world!");
		return "hello";
	}


	@RequestMapping("/xmenu")
	public String xmenu(ModelMap model) {
		return "xmenu";
	}

	@RequestMapping("/map")
	public String textMap(){

		System.out.print("访问成功");
		return "map";
	}

	@RequestMapping("/modal")
	public String textModal(){

		System.out.print("访问成功");
		return "modal";
	}

	@RequestMapping("/show_location")
	public String show_location(){

		// http://api.map.baidu.com/lbsapi/creatmap/index.html  设置网页，生成代码
		System.out.print("访问成功");
		return "show_location";
	}

	@RequestMapping("/baidu_map_api")
	public String baidu_map_api(){
		System.out.print("访问成功");
		return "baidu_map_api";
	}
}